package com.zoke.support.floatingmenu;

import java.util.List;

/**
 * menu条目
 * 
 * @author JackWu
 * @version
 * @date 2014-11-20
 * @_QQ_ 651319154
 */
public class FloatingItem {
	/** 条目是子类还是父类 **/
	public class FloatingItemType {
		private FloatingItemType() {
		}

		/** 父类 **/
		public static final int _PARENT = 1;
		/** 子类 **/
		public static final int _CHILDREN = 2;
	}

	private int id;// 父类或者子类的id
	private int type;// 1级还是2级条目
	private String name;// 条目名字
	private int resId;// 条目图片id
	private boolean isSelected;// 被选中的状态
	private int childSelectedPosition;// 子类被选中的位置//如果没有选过，默认是第一位
	private List<FloatingItem> childs;// 如果是子类 此chids是空的
	private Object obj;

	public Object getObj() {
		return obj;
	}

	public void setObj(Object obj) {
		this.obj = obj;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getResId() {
		return resId;
	}

	public void setResId(int resId) {
		this.resId = resId;
	}

	public List<FloatingItem> getChilds() {
		return childs;
	}

	public void setChilds(List<FloatingItem> childs) {
		this.childs = childs;
	}

	public boolean isSelected() {
		return isSelected;
	}

	public void setSelected(boolean isSelected) {
		this.isSelected = isSelected;
	}

	public int getChildSelectedPosition() {
		return childSelectedPosition;
	}

	public void setChildSelectedPosition(int childSelectedPosition) {
		this.childSelectedPosition = childSelectedPosition;
	}

}
